import React, { Component } from 'react';
import { Button } from 'antd-mobile';
class Reload extends Component {
	constructor (props) {
		super(props);
	}

	render () {
		return (
			<div
				style={{
					width : '100%',
					height : '100%',
					display : 'flex',
					justifyContent : 'center',
					alignItems : 'center'
				}}
				onClick={() => {
					window.location.reload();
				}}
			>
				<Button size="large" type="warning" style={{ width : '90%' }}>
					加载错误,请点击当前页面刷新!!!
				</Button>
			</div>
		);
	}
}

export default Reload;
